package cn.wolfcode.crm.web.controller;/**
 * Created by 10797 on 2018/7/13.
 */

import cn.wolfcode.crm.query.GuaranteeBillQueryObject;
import cn.wolfcode.crm.service.IGuaranteeBillService;
import cn.wolfcode.crm.util.PageResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @program: crm
 * @description:
 * @author: Mr.chen
 * @create: 2018-07-13 17:27
 **/
@Controller
@RequestMapping("historyBill")
public class HistoryBillController {

    @Autowired
    private IGuaranteeBillService guaranteeBillService;

    @RequestMapping("")
    public String main(){
        return "/historyBill/list";
    }

    /*
    * 查询历史记录的所有保单,所以状态应该为所有状态都进行查询
    * */
    @RequestMapping("query")
    @ResponseBody
    public PageResult query(GuaranteeBillQueryObject qo){
        return guaranteeBillService.queryHistoryBill(qo);
    }
}
